package com.moonshineproject.plugin.actionscript.as3parser.completers
{
	import mx.collections.ArrayCollection;
	import mx.collections.Sort;
	import mx.collections.SortField;
	
	public class BaseCompleter
	{
		
		protected function applySort(completions:ArrayCollection):void
		{
			var s:Sort = new Sort();
			s.fields = [new SortField('completion', true, false, false)];
			
			completions.sort = s;
			
			completions.refresh();
		}
	}
}